package com.totoro.tygeneratedragonblock.executor.computeparse;

import com.totoro.tygeneratedragonblock.data.ComputeResult;
import com.totoro.tygeneratedragonblock.utils.PapiUtil;
import org.bukkit.entity.Player;

/**
 * @author Totoro
 * @version 0.1.0
 * @date 2025/8/10 - 22:06
 * @description
 **/
public interface ComputeParseExecutor {

    default String defaultParse(Player player, String computeText) {
        // 解析PAPI变量
        return PapiUtil.parseStrPapiVariable(player, computeText);
    }
    ComputeResult execute(Player player, String computeText);
}
